package com.neuedu.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neuedu.dao.SalesReturnDao;
import com.neuedu.model.SalesReturn;
import com.neuedu.service.SalesReturnService;

@Service
public class SalesReturnServiceImpl implements SalesReturnService {

	// 依赖注入
	@Autowired
	private SalesReturnDao SalesReturnDao;
	
	public void setSalesReturnDao(SalesReturnDao SalesReturnDao) {
		this.SalesReturnDao = SalesReturnDao;
	}
	
	@Override
	public int countSalesReturn() {
		return SalesReturnDao.countSalesReturn();
	}

	@Override
	public List<SalesReturn> findAll(Map<String, Object> map) {
		return SalesReturnDao.findAll(map);
	}

	@Override
	public int addSalesReturn(SalesReturn u) {
		return SalesReturnDao.addSalesReturn(u);
	}

	@Override
	public int updateSalesReturn(SalesReturn u) {
		return SalesReturnDao.updateSalesReturn(u);
	}

	@Override
	public int deleteSalesReturn(int id) {
		return SalesReturnDao.deleteSalesReturn(id);
	}
}
